import { DoudizhuAttributes } from "../../models/doudizhu";
import { DEF } from "./consts";

export class Player {

  public uid: number;
  public sid: string;
  public nickname: string;

  public state: number;       // 状态
  public isRobot: boolean;    //

  public gameInfo?: DoudizhuAttributes;

  constructor(uid: number, sid: string, nickname: string, isRobot: boolean) {
    this.uid = uid;
    this.sid = sid;
    this.nickname = nickname;

    this.state = DEF.PLAYER.STATE.SITDOWN;
    this.isRobot = isRobot;
  }

  public initGameInfo(gameInfo: DoudizhuAttributes) {
    this.gameInfo = gameInfo;
  }


}
